package com.example.todo.service;

import com.example.todo.model.Knowledge;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface KnowledgeService {
    List<Knowledge> findAll();
    
    Knowledge findById(Long id);
    
    Knowledge create(Knowledge knowledge);
    
    Knowledge update(Long id, Knowledge knowledge);
    
    void delete(Long id);
    
    String uploadImage(MultipartFile file) throws IOException;
} 